import Cookies from "js-cookie";
import { TOKEN_KEY } from "@/assets/constants";

// 获取token
export const getLocalToken = () => {
  return Cookies.get(TOKEN_KEY);
};

// 设置token
export const setLocalToken = (token: string) => {
  Cookies.set(TOKEN_KEY, token);
};

// 移除token
export const removeLocalToken = () => {
  Cookies.remove(TOKEN_KEY);
};
